tools/libxl: seperate device init/cleanup from checkpoint device layer
authorWen Congyang <wency@cn.fujitsu.com>
Wed, 15 Jul 2015 07:45:51 +0000 (15:45 +0800)
committerWei Liu <wei.liu2@citrix.com>
Fri, 26 Feb 2016 15:14:47 +0000 (15:14 +0000)
commitab3639079b29ec748541c9457c89f77bd3d8e5ed
tree825364a45864c5515b6fb6993fc72610ef80f684
parentbb3ef7efa4a5d0752de1d425872aa751a637d4eb
tools/libxl: seperate device init/cleanup from checkpoint device layer

we call (init|cleanup)_subkind_nic and (init|cleanup)_subkind_drbd_disk
directly in checkpoint device. Move them to libxl_remus.c, Call them before
calling libxl__checkpoint_devices_setup() or after calling
libxl__checkpoint_devices_teardown().
it is pure refactoring and no functional changes.

Signed-off-by: Wen Congyang <wency@cn.fujitsu.com>
Signed-off-by: Yang Hongyang <hongyang.yang@easystack.cn>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Reviewed-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Acked-by: Wei Liu <wei.liu2@citrix.com>
tools/libxl/libxl_checkpoint_device.c
tools/libxl/libxl_remus.c